package com.wesley.compose;

/**
 * <h1>概述</h1>
 * <p>详述</p>
 *
 * @Date: 2021/8/19
 */
public class ComposeClient {

    public static void main(String[] args) {

        Department department = new Department("软件工程");
        Department department2 = new Department("网络工程");
        College college = new College("计算机学院");
        college.add(department);
        college.add(department2);

        Department department3 = new Department("会计方向");
        College college2 = new College("金融学院");
        college2.add(department3);

        OrgComponent university = new University("大连理工大学");
        university.add(college);
        university.add(college2);

        university.print();
    }

}
